	<%- include('header.html') %>
	</head>
	<body>
		<%- include('nav.html') %>
		<div id="index_right">
			<div class="eassyDetail">
				<h2 class="eassyTitle">
					<%= post.title%>
					<span class="EassyTime">
					<%=	Helper.formatTime(post.created,"YYYY/MM/DD") %>
					</span>					
				</h2>
				<div class="otherInfo">
					<% 
					var tags=Helper.formatTag(post.tags);
					for(let i in tags){
					%>
					<span class="tags color<%= Helper.rand(1,5)%>"><%= tags[i]%></span>

					<% }%>
				</div>				
				<div class="eassyBody">
					<%- post.content%>
				</div>
				<div class="recentEassy">
					<% 
						var pre="";
						var next="";
						for(let i=0;i<post.rencentPost.length;i++){
							let temp=post.rencentPost[i];
							if(temp.eid>post.eid){
								next=temp;
							}else if(temp.eid<post.eid){
								pre=temp;
							}
						}
					%>
					<!-- 前一篇文章 -->
					<% 
						if(pre){
					%>
						<span class="pre">
							上一篇：<a href="<%=Helper.getPostLink(pre.eid)%>" ><%=pre.title%></a>
						</span>
					<%}%>
					<!-- 后一篇文章 -->
					<% 
						if(next){
					%>
						<span class="next">
							下一篇：<a href="<%=Helper.getPostLink(next.eid)%>" ><%=next.title%></a>
						</span>					
					<%}%>
				</div>
			</div>
			<%- include('footer.html') %>								
		</div>
	</body>
<script type="text/javascript">
	//演示使用，正常使用时应该删除这段js，这里只是为了显示当前模版注入了哪些信息，便于调试
	var allData=<%- JSON.stringify(locals) %>;
	console.log(allData);
</script>
</html>